package com.empresa.practicas;

import java.applet.Applet;

import java.awt.*;

public class CirculosConcentricos extends Applet {

    @Override
    public void init() {

    }
    @Override
    public void paint(Graphics g){
        Color colorAmarilloFondo = Color.yellow;
        Color colorRojoFrente = Color.red;
        this.setBackground(colorAmarilloFondo);
        this.setForeground(colorRojoFrente);
        g.drawOval(0, 0, 100, 100);
        g.drawOval(10, 10, 80, 80);
        g.drawOval(20, 20, 60, 60);
        g.drawOval(30, 30, 40, 40);
        g.drawOval(40, 40, 20, 20);
    }
}

